﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace ebc.componentbinder.tests
{
    [TestFixture]
    public class test_Bind
    {
        [Test]
        public void Integration_test()
        {
            var s = new S();
            var t = new T();
            var c = new C();

            new ComponentBinder().Bind(new object[]{c, s, t}, x => Console.WriteLine(x));

            c.Run("abc");

            Assert.AreEqual("abc", s.Received);
        }
    }
}
